package com.ys.entity.product;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_XuanPin", catalog="Id")
public class TpXuanPin extends BaseEntity<TpXuanPin> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="CodeGs", nameJava="codeGs", typeDataBase="varchar")
	private String codeGs;
	@YsField(nameDataBase="ShortNameGs", nameJava="shortNameGs", typeDataBase="varchar")
	private String shortNameGs;
	@YsField(nameDataBase="NameGs", nameJava="nameGs", typeDataBase="varchar")
	private String nameGs;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="CreateUserId", nameJava="createUserId", typeDataBase="varchar")
	private String createUserId;
	@YsField(nameDataBase="CreateOrgId", nameJava="createOrgId", typeDataBase="varchar")
	private String createOrgId;
	@YsField(nameDataBase="StateFlow", nameJava="stateFlow", typeDataBase="tinyint")
	private Integer stateFlow;
	@YsField(nameDataBase="status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpXuanPin setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TpXuanPin setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public String getCodeGs() {
		return codeGs;
	}
	public TpXuanPin setCodeGs(String codeGs) {
		this.codeGs = codeGs;
		return this;
	}
	public String getShortNameGs() {
		return shortNameGs;
	}
	public TpXuanPin setShortNameGs(String shortNameGs) {
		this.shortNameGs = shortNameGs;
		return this;
	}
	public String getNameGs() {
		return nameGs;
	}
	public TpXuanPin setNameGs(String nameGs) {
		this.nameGs = nameGs;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TpXuanPin setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public String getCreateUserId() {
		return createUserId;
	}
	public TpXuanPin setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
		return this;
	}
	public String getCreateOrgId() {
		return createOrgId;
	}
	public TpXuanPin setCreateOrgId(String createOrgId) {
		this.createOrgId = createOrgId;
		return this;
	}
	public Integer getStateFlow() {
		return stateFlow;
	}
	public TpXuanPin setStateFlow(Integer stateFlow) {
		this.stateFlow = stateFlow;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpXuanPin setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpXuanPin setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpXuanPin setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpXuanPin tpXuanPin(
		String bid,
		String codeGs,
		String shortNameGs,
		String nameGs,
		String remark,
		String createUserId,
		String createOrgId,
		Integer stateFlow,
		Integer status
			) {
		TpXuanPin entity = new TpXuanPin();
		entity.setBid(bid);
		entity.setCodeGs(codeGs);
		entity.setShortNameGs(shortNameGs);
		entity.setNameGs(nameGs);
		entity.setRemark(remark);
		entity.setCreateUserId(createUserId);
		entity.setCreateOrgId(createOrgId);
		entity.setStateFlow(stateFlow);
		entity.setStatus(status);
		return entity;
	}
}